﻿using System;
using System.Collections.Generic;
using System.Linq;
using XcoAppSpaces.Core.Configuration;

namespace XcoAppSpaces.Core
{
	/// <summary>
	/// Extension method to create an XcoAppSpace Instance at the end of a fluent configuration.
	/// </summary>
    public static class XcoFluentConfigConversion
    {
		/// <summary>
		/// Creates an XcoAppSpace instance using the given configuration.
		/// </summary>
		/// <param name="config">The configuration.</param>
		/// <returns>The created XcoAppSpace instance.</returns>
		public static XcoAppSpace Create(this IXcoConfiguration config)
		{
			return new XcoAppSpace(config);
		}
    }
}
